package com.hxh.generater.vue.springboot3_vue3.gen;

import com.hxh.entity.Project;
import com.hxh.entity.po.ClassInfo;
import com.hxh.generater.vue.genBase.GenVueBase;

public class GenSb3Vue3Vue implements GenVueBase {

    /**
     * 生成单个view，项目文件生成模式
     *
     * @param project
     * @param classInfo
     * @throws Exception
     */
    @Override
    public void generationView(Project project, ClassInfo classInfo) throws Exception {
        GenSb3Vue3ViewRemote.generationAdd(project, classInfo);
        GenSb3Vue3ViewRemote.generationContent(project, classInfo);
        GenSb3Vue3ViewRemote.generationEdit(project, classInfo);
        GenSb3Vue3ViewRemote.generationSearch(project, classInfo);
        GenSb3Vue3ViewRemote.generationIndexVue(project, classInfo);
    }

    /**
     * 生成单个view，代码生成模式
     *
     * @param classInfo
     * @return
     * @throws Exception
     */
    @Override
    public String generationView(ClassInfo classInfo) throws Exception {
        return "";
    }

    /**
     * 生成view页面的api请求js文件
     *
     * @param project
     * @param classInfo
     * @throws Exception
     */
    @Override
    public void generationApi(Project project, ClassInfo classInfo) throws Exception {
        GenSb3Vue3ApiRemote.generationApiModel(project, classInfo);
        GenSb3Vue3ApiRemote.generationApiIndex(project, classInfo);
    }

    /**
     * 生成view页面的api请求js文件
     *
     * @param classInfo
     * @return
     * @throws Exception
     */
    @Override
    public String generationApi(ClassInfo classInfo) throws Exception {
        return "";
    }
}
